package com.syyo.gulimall.product.feign;

import com.syyo.common.domain.ResultVo;
import com.syyo.common.vo.SkuHasStockVo;
import com.syyo.gulimall.product.feign.fallback.SeckillFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author: wang
 * @date: 2021/3/2 16:02
 * @Description:
 * fallback = SeckillFeignFallback.class : 设置默认fanhui
 *
 */
@FeignClient(value = "gulimall-seckill",fallback = SeckillFeignFallback.class)
public interface SeckillFeign {

    @GetMapping("/sku/seckill/{skuId}")
    ResultVo getSkuSeckillInfo(@PathVariable("skuId")Long skuId);

}
